package com.and9.mchen.mweather.cw.entity;

import java.sql.Timestamp;

public class Weather extends BaseObject{

	private Local local;
	private Temperature temperature;
	private String weatherType;
	private String[] weatherImageUrl;
	private String windDirection;
	private String windSpeed;
	private String humidity;
	private Timestamp latelyUpdateTime;
	private Timestamp latelyRealUpdateTime;
	private Timestamp latelyDailyUpdateTime;
	
	public Local getLocal() {
		return local;
	}
	public void setLocal(Local local) {
		this.local = local;
	}
	public Temperature getTemperature() {
		return temperature;
	}
	public void setTemperature(Temperature temperature) {
		this.temperature = temperature;
	}
	public String getWeatherType() {
		return weatherType;
	}
	public void setWeatherType(String weatherType) {
		this.weatherType = weatherType;
	}
	public String[] getWeatherImageUrl() {
		return weatherImageUrl;
	}
	public void setWeatherImageUrl(String[] weatherImageUrl) {
		this.weatherImageUrl = weatherImageUrl;
	}
	public String getWindDirection() {
		return windDirection;
	}
	public void setWindDirection(String windDirection) {
		this.windDirection = windDirection;
	}
	public String getWindSpeed() {
		return windSpeed;
	}
	public void setWindSpeed(String windSpeed) {
		this.windSpeed = windSpeed;
	}
	public String getHumidity() {
		return humidity;
	}
	public void setHumidity(String humidity) {
		this.humidity = humidity;
	}
	public Timestamp getLatelyUpdateTime() {
		return latelyUpdateTime;
	}
	public void setLatelyUpdateTime(Timestamp latelyUpdateTime) {
		this.latelyUpdateTime = latelyUpdateTime;
	}
	public Timestamp getLatelyRealUpdateTime() {
		return latelyRealUpdateTime;
	}
	public void setLatelyRealUpdateTime(Timestamp latelyRealUpdateTime) {
		this.latelyRealUpdateTime = latelyRealUpdateTime;
	}
	public Timestamp getLatelyDailyUpdateTime() {
		return latelyDailyUpdateTime;
	}
	public void setLatelyDailyUpdateTime(Timestamp latelyDailyUpdateTime) {
		this.latelyDailyUpdateTime = latelyDailyUpdateTime;
	}

	public static Weather getNewInstance(){
		
		Weather weather=new Weather();
		Temperature temperature=new Temperature();
		Local local=new Local();
		String[] weatherImageUrl=new String[2];
		weather.setTemperature(temperature);
		weather.setLocal(local);
		weather.setWeatherImageUrl(weatherImageUrl);
		
		return weather;
	}
	
}
